package com.kyub.spring.gears.test.controller;

import java.util.HashMap;
import java.util.Map;

import com.kyub.spring.gears.model.PojoRegistry;
import com.kyub.spring.gears.model.PojoRegistryEntry;
import com.kyub.spring.gears.services.DaoService;
import com.kyub.spring.gears.services.impl.StdOutDaoService;
import com.kyub.spring.gears.test.domain.Person;

public class PojoRegistryMock extends PojoRegistry {

	public static final String PERSON = "person";
	public static final Class PERSON_CLASS = Person.class;
	private PojoRegistryEntry pojoRegistryEntry;

	public PojoRegistryMock() {
		pojoRegistryEntry = new PojoRegistryEntry();
		pojoRegistryEntry.setClassName("com.kyub.spring.gears.test.domain.Person");
		final HashMap<String, PojoRegistryEntry> registry = new HashMap<String, PojoRegistryEntry>();
		registry.put(PERSON, pojoRegistryEntry);
		this.setRegistry(registry);
		this.setDefaultDao( new StdOutDaoService());
		
		
	}

	

	

	
	
	
	
	

}
